package org.cnc.explain.lifecycle.beaninstance_6;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * <p>
 * #TODO: desc
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-08-28
 */
@Component
public class BeanInstanceBean {

	@Autowired
	private BeanInstanceConstructInjectBean beanInstanceConstructInjectBeanAutowired;

	private BeanInstanceConstructInjectBean beanInstanceConstructInjectBean;

	public BeanInstanceBean(BeanInstanceConstructInjectBean beanInstanceConstructInjectBean) {
		this.beanInstanceConstructInjectBean = beanInstanceConstructInjectBean;
	}

	public BeanInstanceBean() {
	}

	public void setBeanInstanceConstructInjectBean(BeanInstanceConstructInjectBean beanInstanceConstructInjectBean) {
		this.beanInstanceConstructInjectBean = beanInstanceConstructInjectBean;
	}

	public void setBeanInstanceConstructInjectBeanAutowired(BeanInstanceConstructInjectBean beanInstanceConstructInjectBeanAutowired) {
		this.beanInstanceConstructInjectBeanAutowired = beanInstanceConstructInjectBeanAutowired;
	}

	public BeanInstanceConstructInjectBean getBeanInstanceConstructInjectBean() {
		return beanInstanceConstructInjectBean;
	}

	public BeanInstanceConstructInjectBean getBeanInstanceConstructInjectBeanAutowired() {
		return beanInstanceConstructInjectBeanAutowired;
	}

	@Override
	public String toString() {
		return "BeanInstanceBean{" +
				"\nbeanInstanceConstructInjectBeanAutowired=" + beanInstanceConstructInjectBeanAutowired +
				"\nbeanInstanceConstructInjectBean=" + beanInstanceConstructInjectBean +
				"\n}";
	}
}
